import axios from "axios";
import qs from "qs";

import Vue from "vue";

// 环境的切换
const nodeEnv = process.env.NODE_ENV;
let envMap = new Map([
  ["development", "https://www.vue-js.com/api/v1"],
  ["production", "https://www.vue-js.com/api/v1"]
]);
// axios.defaults.baseURL = envMap.get(process.env.NODE_ENV);

axios.defaults.retry = 4;
axios.defaults.retryDelay = 1000;
axios.defaults.timeout = 15000;
// 请求操作



export default axios;
